package com.dong.vdbtc.javabeanvalidation;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.lang.annotation.Annotation;

/**
 * description
 *
 * @author Administrator 2021/09/08 16:46
 */
public class MyConstraintValidator implements ConstraintValidator<MyConstraint,String> {

    @Override
    public void initialize(MyConstraint constraintAnnotation) {
        ConstraintValidator.super.initialize(constraintAnnotation);
    }

    @Override
    public boolean isValid(String s, ConstraintValidatorContext constraintValidatorContext) {
        return false;
    }
}
